import request from "@/utils/request";

// 查询客户信息列表
export function listUser(query) {
  return request({
    url: "/system/userVo/list",
    method: "get",
    params: query,
  });
}

// 查询客户信息详细
export function getUser(id) {
  return request({
    url: "/system/userVo/" + id,
    method: "get",
  });
}

// 新增客户信息
export function addUser(data) {
  return request({
    url: "/system/userVo",
    method: "post",
    data: data,
  });
}

// 修改客户信息
export function updateUser(data) {
  return request({
    url: "/system/userVo",
    method: "put",
    data: data,
  });
}

// 删除客户信息
export function delUser(id) {
  return request({
    url: "/system/userVo/" + id,
    method: "delete",
  });
}
